package com.kuang.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @program: spring-study
 * @description:
 * @author: 陈恩涛
 * @create: 2020-07-13 21:46
 **/
public class AferLog implements AfterReturningAdvice {
    //returnValue,返回值
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了"+method.getName()+"方法,返回结果为："+returnValue);
    }
}
